package com.thread;

/**
 * PointTest--bdqnPractice
 *
 * @author: Jovi
 * @createTime: 2017-09-05 13:54
 **/
public class PointTest {
    public static void main(String[] args) throws InterruptedException {
        new Thread(){
            @Override
            public void run() {
                System.out.println("1");
                try {
                    Thread.sleep(3000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
                System.out.println("2");
            }
        }.start();

        System.out.println(3);
        Thread.sleep(2);
        System.out.println(4);
    }

}
